package com.lovo;

import util.Util;

public class Computer extends Role {

    public  void getRadomNumber() {

        int radomArr = Util.radom(1, 3);
            if (radomArr == 1) {
                System.out.println("机器人：我出石头");
            }else if (radomArr == 2) {
                System.out.println("机器人：我出剪刀");
            }else {
                System.out.println("机器人：我出布");

        }
    this.setNumber(radomArr);

    }


}

